#{extends 'template/main.html' /}
#{set title:'Login' /}


 <div class="container">

      <form class="form-signin" action="@{Login.tryLogin()}">
        <h4 class="form-signin-heading">Login no Personal Diet</h4>
       
        <input class="form-control" type="text" name="p.login" value="${flash['p.login']}"  placeholder="Login">    
       	<br/>
        <input type="password" class="form-control" name="p.senha" placeholder="Senha">
        
        <label class="checkbox">
          <input type="checkbox" value="remember-me"> Lembre me
        </label>
      	<button type="submit" class="btn btn-success">Entrar</button>
      </form>
#{ifErrors}
<div class="alert alert-danger">Senha ou Usuário Inválido!!!</div>
   
#{/ifErrors}
    </div> 